﻿using Coldairarrow.Util;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base
{
    /// <summary>
    /// 看板信息
    /// </summary>
    [Table("Base_Registration")]
    public partial class Base_Registration
    {

        /// <summary>
        /// 自增主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 看板编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 看板名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public String DepartmentId { get; set; }

        /// <summary>
        /// 看板状态 0正常 1关闭
        /// </summary>
        public Boolean? State { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 看板地址
        /// </summary>
        public String Mac { get; set; }

        /// <summary>
        /// 工厂
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 看板二维码
        /// </summary>
        public String QrCode { get; set; }

    }

    public class Base_RegistrationDto : Base_Registration {

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 组织名称
        /// </summary>
        public string DeptName { get; set; }

    }
    public class Base_RegistrationCondition:PageInput<ConditionDTO>{
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        public string Keword { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
    }

    /// <summary>
    /// 当前看板对应的组织
    /// </summary>
    public class Base_RegistrationDtoDeptList  
    {

     

        /// <summary>
        /// 设备ID
        /// </summary>
        public String Id { get; set;}

        /// <summary>
        /// 设备ID
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 部门id
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 组织id
        /// </summary>
        public string DeptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }

    }

}